#ifndef __MYSQL_H__
#define __MYSQL_H__
#include <mysql/mysql.h>
#include <string>
class MySqlDB
{
private:
    MYSQL* m_mysqlClient;
    MySqlDB()
    {
        m_mysqlClient=mysql_init(nullptr);
    }
public:
    static MySqlDB* GetInstance()
    {
        static MySqlDB res;
        return &res;
    }
    void ConnectMysqlServer(const std::string ip,unsigned short port,const std::string& user,
        const std::string& password,const std::string& db);
    ~MySqlDB();
    bool query( std::string& sql);
};

#endif